import React, { Component } from 'react'
import listcss from "./index.module.css"
import Item from "../Item"

export default class List extends Component {
    render() {
        console.log(this.props.users);
        return (
            <div className={listcss.main}>
                {
                    this.props.users.map(item => {
                        return (
                            <Item key={item.id} item={item} />
                        )
                    })
                }
            </div>
        )
    }
}
